/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ages.test.fjump2

import com.ages.env.AbstractWorld
import com.ages.env.GLWindow
import com.ages.input.Keyboard
import com.ages.math.Vector3D
import com.ages.test.Box
import com.ages.test.HelloWorldWorld
import scala.util.Random

object FJump2 {

  def main(args:Array[String])
  {
    val keys = new Keyboard
    val player = new FJPlayer(new Vector3D(0,0,0),keys)
    val world:AbstractWorld = new FJumpWorld(player)
    world.addEntity(player)
    val rnd = new Random()
    for(x <- 1 to 20 )
      {
        world.addEntity(new Platform(new Vector3D((0.5-rnd.nextDouble)*8,3*x,0)))
      }
    world.addEntity(new Platform(new Vector3D(0,-1.25,0)))
    
    val gameWindow:GLWindow = new GLWindow("FJump 2 - v0.0.1",world,640,480)
    gameWindow.addKeylistener(keys)
  }

}
